import 'package:equatable/equatable.dart';
import 'package:backend.purchases/domain/entities/yookassa_api/payments/yookassa_api_bank_card_type.dart';

class YookassaApiBankCardInfo extends Equatable {
  const YookassaApiBankCardInfo({
    required this.last4,
    required this.expirationMonth,
    required this.expirationYear,
    required this.cardType,
  });

  final String last4;
  final String expirationMonth;
  final String expirationYear;
  final YookassaApiBankCardType cardType;

  @override
  List<Object?> get props {
    return [
      last4,
      expirationMonth,
      expirationYear,
      cardType,
    ];
  }
}
